package org.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user")
@Builder
public class User implements Serializable {
    @TableId(value = "id",type = IdType.NONE)
    private Long id;
    private String account;
    @JsonIgnore
    private String password;
    @JsonIgnore
    private String salt;
    private String avatar;
    private Integer admin;
    private Long createDate;
    @TableLogic
    @JsonIgnore
    private Integer isDelete;
    private String email;
    private Long lastLogin;
    private String mobilePhone;
    private String nickname;
    private Integer sex;

    private String status;
}
